package com.wxboot.game.eliminate.base;

public class BombAreaPoint {
    private final int leftUpRow;
    private final int leftUpCol;
    private final int rightDownRow;
    private final int rightDownCol;

    public BombAreaPoint(int leftUpRow, int leftUpCol, int rightDownRow, int rightDownCol) {
        this.leftUpRow = leftUpRow;
        this.leftUpCol = leftUpCol;
        this.rightDownRow = rightDownRow;
        this.rightDownCol = rightDownCol;
    }

    public int getLeftUpRow() {
        return leftUpRow;
    }

    public int getLeftUpCol() {
        return leftUpCol;
    }

    public int getRightDownRow() {
        return rightDownRow;
    }

    public int getRightDownCol() {
        return rightDownCol;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("BombAreaPoint{");
        sb.append("leftUpRow=").append(leftUpRow);
        sb.append(", leftUpCol=").append(leftUpCol);
        sb.append(", rightDownRow=").append(rightDownRow);
        sb.append(", rightDownCol=").append(rightDownCol);
        sb.append('}');
        return sb.toString();
    }
}
